#!/bin/sh
#make clean
export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig/
SDL_CFLAGS=/usr/local/include
SDL_LIBS=/usr/local/lib
./configure \
	--enable-shared \
	--enable-gpl \
	--enable-version3 \
	--enable-runtime-cpudetect \
	--enable-memalign-hack \
	--cpu=i686 \
	--enable-w32threads \
	--enable-libmp3lame \
	--enable-libx264 \
	--enable-librtmp \
	--extra-cflags="-mmmx -msse -mfpmath=sse" \
	--enable-dxva2 \
	--enable-hwaccels \
	--enable-hwaccel=h264_dxva2 \
	--enable-hwaccel=vc1_dxva2 \
	--enable-hwaccel=wmv3_dxva2 \
	--enable-hwaccel=mpeg2_dxva2 \
	--extra-cflags="-fno-common" \
	--extra-cflags="-I/usr/local/include" \
	--extra-ldflags="-L/usr/local/lib -static-libgcc -liconv" \
	--enable-ffplay \
	--disable-doc
make -j4